/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 标准资产型号
 *
 * @author liyue
 * @date 2021-11-17 17:29:51
 */
@Data
@TableName("fy_asset_sau")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "标准资产型号")
public class AssetSau extends Model<AssetSau> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value="主键")
    private Long id;

    @ApiModelProperty(value="附件ID")
    private String unid;

    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID")
    private Integer tenantId;

    /**
     * 数据删除标记
     */
    @TableLogic
    @ApiModelProperty(value="数据删除标记")
    private String delFlag;

    /**
     * 资产分类ID
     */
    @ApiModelProperty(value="资产分类ID")
    private Long ctiId;

    /**
     * 资产分类全名称
     */

    @ApiModelProperty(value="资产分类全名称")
    private String classified;
    /**
     * 资产分类全名称
     */

    @ApiModelProperty(value="资产分类类型")
    private String ctiType;

    /**
     * 资产分类全编码
     */
    @TableField(condition = SqlCondition.LIKE_RIGHT)
    @ApiModelProperty(value="资产分类全编码")
    private String classifiedCode;

    /**
     * 条形码
     */
    @ApiModelProperty(value="条形码")
    private String barcode;

    /**
     * 名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="名称")
    private String name;

    /**
     * 规格型号
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="规格型号")
    private String model;

    /**
     * 金额
     */
    @ApiModelProperty(value="金额")
    private BigDecimal amount;

    /**
     * 计量单位
     */
    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty(value="计量单位")
    private String unit;

    /**
     * 照片
     */
    @ApiModelProperty(value="照片")
    private String photo;

}
